import { MockAdapter } from '@/mock/mock-adapter';
const mock = MockAdapter.getInstance();

import Mock from 'mockjs'
const Random = Mock.Random;

// 获取应用数据
mock.onGet('v7/app-index-viewappmenu').reply((config: any) => {
    let status = MockAdapter.mockStatus(config);
    return [status, {
        name: 'appmenu',
        items:  [
            {
	id: '82D63241-B88D-4ED2-8590-46D84B53F0A6',
	name: 'menuitem1',
	text: '首页',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '首页',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: 'home',
	icon: '',
	textcls: '',
	appfunctag: 'AppFunc7',
	resourcetag: '',
},
            {
	id: '7A7D3956-8757-4016-979E-CF5B9F57DDC2',
	name: 'menuitem2',
	text: '店铺申请',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '店铺申请',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: '',
	icon: '',
	textcls: '',
	appfunctag: 'AppFunc8',
	resourcetag: '',
},
            {
	id: '05A17A01-301F-4A5E-A529-E2F2C07907FC',
	name: 'menuitem3',
	text: '我的',
	type: 'MENUITEM',
	counterid: '',
	tooltip: '我的',
	expanded: false,
	separator: false,
	hidden: false,
	hidesidebar: false,
	opendefault: false,
	iconcls: 'person',
	icon: '',
	textcls: '',
	appfunctag: 'AppFunc23',
	resourcetag: '',
},
        ],
    }];
});

